﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SEEditor.Extended;
            
using sqengine.Components;

namespace SEEditor
{
    public partial class frmMain : Form
    {
        SaveManager saveman;
        public frmMain()
        {
            InitializeComponent();
            this.Text = Common.SqEditorVersion._full_version;
            saveman = new SaveManager();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            WindowState = FormWindowState.Maximized;
        }
        



        private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (MessageBox.Show("Are you sure you want exit?", Common.SqEditorVersion._full_version, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                e.Cancel = true;
            }
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void testToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmConfig fConfig = new frmConfig(saveman, sfDialog, ofDialog );
            fConfig.MdiParent = this;
            fConfig.Show();
        }

        private void introToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmIntro fIntro = new frmIntro(saveman, sfDialog, ofDialog);
            fIntro.MdiParent = this;
            fIntro.Show();
        }
    }
}
